module.exports = class SyncHook {
    constructor() {
        this.tasks = []
    }
    tap(name, callback) {
        this.tasks.push(callback);
    }
    call(...args) {
        this.tasks.forEach(fn => fn(...args))
    }
}